package org.example.api.pc;

import org.example.R.R;
import org.example.entity.dto.AddNoticeDto;
import org.example.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@RestController
@RequestMapping("/api/pc/notice")
public class PCNoticeController {

    @Autowired
    private NoticeService noticeService;

    @PostMapping("/list")
    public R list(){
        return noticeService.pcNoticeList();
    }

}
